package com.ruoyi.business.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.business.mapper.BusDeviceWeatherMapper;
import com.ruoyi.business.domain.BusDeviceWeather;
import com.ruoyi.business.service.IBusDeviceWeatherService;

/**
 * 天气Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-07-22
 */
@Service
public class BusDeviceWeatherServiceImpl implements IBusDeviceWeatherService 
{
    @Autowired
    private BusDeviceWeatherMapper busDeviceWeatherMapper;

    /**
     * 查询天气
     * 
     * @param id 天气主键
     * @return 天气
     */
    @Override
    public BusDeviceWeather selectBusDeviceWeatherById(Long id)
    {
        return busDeviceWeatherMapper.selectBusDeviceWeatherById(id);
    }

    /**
     * 查询天气列表
     * 
     * @param busDeviceWeather 天气
     * @return 天气
     */
    @Override
    public List<BusDeviceWeather> selectBusDeviceWeatherList(BusDeviceWeather busDeviceWeather)
    {
        return busDeviceWeatherMapper.selectBusDeviceWeatherList(busDeviceWeather);
    }

    /**
     * 新增天气
     * 
     * @param busDeviceWeather 天气
     * @return 结果
     */
    @Override
    public int insertBusDeviceWeather(BusDeviceWeather busDeviceWeather)
    {
        return busDeviceWeatherMapper.insertBusDeviceWeather(busDeviceWeather);
    }

    /**
     * 修改天气
     * 
     * @param busDeviceWeather 天气
     * @return 结果
     */
    @Override
    public int updateBusDeviceWeather(BusDeviceWeather busDeviceWeather)
    {
        return busDeviceWeatherMapper.updateBusDeviceWeather(busDeviceWeather);
    }

    /**
     * 批量删除天气
     * 
     * @param ids 需要删除的天气主键
     * @return 结果
     */
    @Override
    public int deleteBusDeviceWeatherByIds(Long[] ids)
    {
        return busDeviceWeatherMapper.deleteBusDeviceWeatherByIds(ids);
    }

    /**
     * 删除天气信息
     * 
     * @param id 天气主键
     * @return 结果
     */
    @Override
    public int deleteBusDeviceWeatherById(Long id)
    {
        return busDeviceWeatherMapper.deleteBusDeviceWeatherById(id);
    }
}
